import { Column, Entity, JoinColumn, ManyToMany, OneToOne, PrimaryGeneratedColumn } from "typeorm";
import { Menu } from "./menu.entity";

@Entity()
export class Meta {
  @PrimaryGeneratedColumn()
  id: string

  @Column()
  title: string

  @Column({
    nullable: true
  })
  icon: string

  @Column({
    type: "char",
    name: "is_hidden",
    default: 0
  })
  isHidden: number;

  @OneToOne(type => Menu, menu => menu.meta)
  menu: Menu

}